package la.renzhen.rtpt.admin.boot.starter.jdbc;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * <p>
 *
 * @author <a href="mailto:zhouhaichao@2008.sina.com">haiker</a>
 * @version 16/05/2018 7:34 PM
 */
@Data
@ConfigurationProperties("rtpt.admin.jdbc")
public class JdbcProperties {

    boolean enable = false;

    String url;
    String username;
    String password;
    String driverClassName;

    int maxActive = 20;
    int initialSize = 1;
    int maxWait = 60000;
    int minIdle = 1;
    int timeBetweenEvictionRunsMillis = 60000;
    int minEvictableIdleTimeMillis = 300000;
    boolean testWhileIdle = true;
    boolean testOnBorrow = false;
    boolean testOnReturn = false;
    boolean poolPreparedStatements = true;
    int maxOpenPreparedStatements = 20;

}